Ignore the delta from the NSEvent for now, generating multiple scroll
authorRichard Hult <richard@imendio.com>
Fri, 8 Feb 2008 19:08:40 +0000 (19:08 +0000)
committerRichard Hult <rhult@src.gnome.org>
Fri, 8 Feb 2008 19:08:40 +0000 (19:08 +0000)
2008-02-08  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Ignore the
delta from the NSEvent for now, generating multiple scroll events
results in a lot of events getting queued up and things get really
slow.

svn path=/trunk/; revision=19499

ChangeLog
gdk/quartz/gdkevents-quartz.c

index 28c6a3e4c7ba2171e2e06b2867722b553505b4c2..af7a3df359bd292e2e92c7dc0718f90b13e0c342 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-08  Richard Hult  <richard@imendio.com>
+
+       * gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Ignore the
+       delta from the NSEvent for now, generating multiple scroll events
+       results in a lot of events getting queued up and things get really
+       slow.
+
 2008-02-08  Sven Herzberg  <sven@imendio.com>
 
        Adjust the code to match the documentation, examples, "common sense"
index 832646cd6b434ad98e516f40e60d48d18a6627d0..aded4d4d079026e5cc07c8ea3be8e94c741ab7f1 100644 (file)
@@ -1781,6 +1781,9 @@ gdk_event_translate (NSEvent *nsevent)
            event = create_scroll_event (window, nsevent, direction);
            append_event (event);
            dy--;
+
+            /* Ignore the delta for now, things get too slow when the events queue up. */
+            break;
          }
 
        /* Now do x events */
@@ -1797,6 +1800,9 @@ gdk_event_translate (NSEvent *nsevent)
            event = create_scroll_event (window, nsevent, direction);
            append_event (event);
            dx--;
+            
+            /* Ignore the delta for now, things get too slow when the events queue up. */
+            break;
          }
 
       }